package com.uit2012.school_helper;

import com.uit2012.fragment.GradesFragment;
import com.uit2012.fragment.LibraryFragment;
import com.uit2012.fragment.RefectoryFragment;
import com.uit2012.fragment.ScheduleFragment;

public class FragmentContainer {
	private static RefectoryFragment refe= null;
	private static ScheduleFragment sche= null;
	private static LibraryFragment libr= null;
	private static GradesFragment grad= null;
	
	public static GradesFragment getGrad() {
		if (grad == null) {
			grad = new GradesFragment();
		}
		return grad;
	}
	public static LibraryFragment getLibr() {
		if (libr == null) {
			libr = new LibraryFragment();
		}
		return libr;
	}
	public static RefectoryFragment getRefe() {
		if (refe == null) {
			refe = new RefectoryFragment();
		}
		return refe;
	}
	public static ScheduleFragment getSche() {
		if (sche == null) {
			sche = new ScheduleFragment();
		}
		return sche;
	}
}
